﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Newtonsoft.Json;

namespace GoogleServicesLib.GeoCoding
{
    [JsonObject(MemberSerialization.OptIn)]
    public class Geometry
    {
        /// <summary>
        /// Contains the geocoded latitude,longitude value. For normal address
        /// lookups, this field is typically the most important.
        /// </summary>
        [JsonProperty("location")]
        public GeoLocationCoordinate Location { get; set; }

        /// <summary>
        /// Stores additional data about the specified location.
        /// </summary>
        [JsonProperty("location_type")]
        public LocationType LocationType { get; set; }

        /// <summary>
        /// Contains the recommended viewport for displaying the returned
        /// result, specified as two latitude,longitude values defining the
        /// southwest and northeast corner of the viewport bounding box.
        /// Generally the viewport is used to frame a result when displaying
        /// it to a user.
        /// </summary>
        [JsonProperty("viewport")]
        public Viewport Viewport { get; set; }
    }
}
